package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
@TableName("v_clock")
@Data
public class VClock extends Model<VClock> {

    private static final long serialVersionUID = 1L;
    private Long id;

	@TableField("site_id")
	private Long siteId;
	@TableField("DAY")
	private Date day;
	private Long userId;
	private BigDecimal allTime;
	private BigDecimal overtime;
	private BigDecimal normalTime;
	private String daySalary;

	public static final String SITE_ID = "site_id";

	public static final String DAY = "DAY";

	public static final String USERID = "userId";

	public static final String ALLTIME = "allTime";

	public static final String OVERTIME = "overtime";

	public static final String NORMALTIME = "normalTime";

	public static final String DAYSALARY = "daySalary";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VClock{" +
			"siteId=" + siteId +
			", day=" + day +
			", userId=" + userId +
			", allTime=" + allTime +
			", overtime=" + overtime +
			", normalTime=" + normalTime +
			", daySalary=" + daySalary +
			"}";
	}
}
